using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ClipDisplayToggle:MonoBehaviour {
	Player target;


	void Update() {
		if(!target)
			target=Player.instance;

		if(target.activeWeapon.ContainsTag(WeaponTags.NoReload)) {
			for(int i = 0;i<transform.childCount;i++) transform.GetChild(i).gameObject.SetActive(false);
		} else {
			for(int i = 0;i<transform.childCount;i++) transform.GetChild(i).gameObject.SetActive(true);
		}

	}
}
